Viewing 
<% if @user || @contest || @problem%>
 runs for
<%else%>
  all runs
<% end%>
<% if @user%>
    user <%= link_to "#{@user.login}#{", " if @contest or @problem }", 
  :action => :status, :problem => @problem,:contest => @contest,:order => @order%>
<%end%>
<% if @problem%>
  problem <%= link_to "#{@problem.name}",:action => :status, :user => @user,
    :contest => @contest,:order => @order %>
  <%= link_to "(show)",:controller => :problems,:action =>:show, :id => @problem%>
<% end%>
<% if @contest%>
  contest <%= link_to "#{@contest.name}", :action => :status, :user => @user ,:problem => @problem, :order => @order%>
  <%= link_to "(board)",:action => :view_board,:contest => @contest%>
<% end%>
  :
<%= render(:partial => "runs/runs", :locals => {:runs => @runs,:problem => @problem,
        :contest => @contest, :user => @user,:order => @order})%>
<%= will_paginate @runs%>


